mt76: Use the correct hweight8() function
authorBen Hutchings <ben@decadent.org.uk>
Tue, 12 Feb 2019 15:20:48 +0000 (15:20 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
commita0193bb84fb20198750f8688e4856d1b2341dad9
tree8e3d3a1e9623f38285bea15e37be5ea82d54f6ea
parentd6ff5ec749fd81b74777a5ff9d9c685d85422fd6
mt76: Use the correct hweight8() function

mt76_init_stream_cap() and mt76_get_txpower() call __sw_hweight8()
directly, but that's only defined if CONFIG_GENERIC_HWEIGHT is
enabled.  The function that works on all architectures is hweight8().

Fixes: 551e1ef4d291 ("mt76: add mt76_init_stream_cap routine")
Fixes: 9313faacbb4e ("mt76: move mt76x02_get_txpower to mt76 core")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[bwh: For 4.19, drop change in mt76_get_txpower()]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mt76-use-the-correct-hweight8-function.patch
drivers/net/wireless/mediatek/mt76/mac80211.c